package cn.iocoder.yudao.module.erp.enums;

import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.Arrays;

@RequiredArgsConstructor
@Getter
public enum ErpSupplierStatus implements ArrayValuable<Integer> {

    WAIT_AUDIT(0, "未审核"),
    AUDITING(1, "审核中"),
    PASS(2, "已审核"),
    REJECT(3, "已拒绝"),
    BLACKLIST(4, "黑名单");

    public static final Integer[] ARRAYS = Arrays.stream(values()).map(ErpSupplierStatus::getStatus).toArray(Integer[]::new);

    /**
     * 状态
     */
    private final Integer status;
    /**
     * 状态名
     */
    private final String name;

    @Override
    public Integer[] array() {
        return ARRAYS;
    }

}
